<?php
//前台
Route::group(['namespace' => 'Home'], function () {

    //前台
    Route::group([], function () {
        Route::get('/','IndexController@index');//主页
        Route::get('/about','AboutController@index');//关于我
        Route::get('/time','TimeController@index');//时间轴
//        Route::get('/share','ShareController@index');//代码分享
//        Route::get('/gbook','GbookController@index');//留言
        //文章
        Route::group([], function () {
            Route::get('/category/{id}','CategoryController@index');
            Route::get('/article/info/{id}','ArticleController@info');
        });

        //聊天室功能
        Route::group([], function () {
            Route::get('/chat','ChatController@index');//聊天室
            Route::post('/chat/save','ChatController@save_message');//保存信息
            Route::post('/chat/getHead','ChatController@get_head');//获取头像
            Route::post('/chat/getName','ChatController@get_name');//获取名称
            Route::post('/chat/load','ChatController@load_message');//获取保存数据
            Route::post('/chat/upload','ChatController@upload_image');//获取保存数据
            Route::get('/chatList','ChatListController@index');//聊天列表
            Route::post('/chatList/get_list','ChatListController@get_list');//聊天列表
        });

    });

});






